Search
InternalUtils.LinearGradient Method (PointF, PointF, Object[])
See Also
 





Creates a linear gradient brush with the specified blend and orientation.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public static LinearGradientBrush LinearGradient (
    PointF a,
    PointF b,
    Object[] positionsAndColors
)

Visual Basic  Copy Code

Public Shared Function LinearGradient( _
    a As PointF, _
    b As PointF, _
    positionsAndColors() As Object _
) As LinearGradientBrush

 Parameters

a
The start point of the linear gradient.
b
The end point of the linear gradient.
positionsAndColors
An alternating sequence of float and Color pairs where each pair defines a gradient stop. The positions in the sequence need to be in ascending order.

 Return Value

An instance of the LinearGradientBrush class corresponding to the specified settings.

 See Also